/////////////////////////////////////////////////////////////////////////
///@system Basis交易所系统
///@company 上海尔易信息技术有限公司
///@file ViUserApiStruct.h
///@brief 定义了客户端接口使用的业务数据结构
///@history
///20140624	武玉波		创建该文件
/////////////////////////////////////////////////////////////////////////



///信息分发
var CViDisseminationField = function () {
    return {
        ///流类型编号
        SequenceSeries: "",///TViSequenceSeriesType	SequenceSeries;
        ///流的系列号
        SequenceNo: "",///TViSequenceNoType	SequenceNo;
        _id: 0
    }
};

///响应信息
var CViRspInfoField = function () {
    return {
        ///错误代码
        ErrorID: "",///TViErrorIDType	ErrorID;
        ///错误信息
        ErrorMsg: "",///TViErrorMsgType	ErrorMsg;
        _id: 0
    }
};

///用户登录请求
var CViReqUserLoginField = function () {
    return {
        ///用户代码
        CustomerID: "",///TViCustomerIDType	CustomerID;
        ///登录密码
        Password: "",///TViPasswordType	Password;
        ///MAC地址
        MacAddress: "",///TViMacAddressType	MacAddress;
        ///登录时订阅合约信息方式
        SubInstrumentMethod: "",///TViSubInstrumentMethodTypeType	SubInstrumentMethod;
        ///是否以单个策略身份登录
        IsRule: "",///TViBoolType	IsRule;
        _id: 0
    }
};

///用户登录响应
var CViRspUserLoginField = function () {
    return {
        ///用户代码
        CustomerID: "",///TViCustomerIDType	CustomerID;
        ///系统交易日
        TradingDay: "",///TViDateType	TradingDay;
        ///登录成功时间
        LoginTime: "",///TViTimeType	LoginTime;
        ///最大报单引用
        MaxOrderRef: "",///TViOrderRefType	MaxOrderRef;
        _id: 0
    }
};

///客户端有权限访问的菜单
var CViCustomerMenuField = function () {
    return {
        ///菜单名称
        MenuName: "",///TViMenuNameType	MenuName;
        ///菜单类型
        MenuType: "",///TViMenuTypeType	MenuType;
        _id: 0
    }
};

///用户退出
var CViUserLogoutField = function () {
    return {
        ///用户代码
        UserID: "",///TViUserIDType	UserID;
        _id: 0
    }
};

///报单录入
var CViInputOrderField = function () {
    return {
        ///前置编号
        FrontID: "",///TViFrontIDType	FrontID;
        ///会话编号
        SessionID: "",///TViSessionIDType	SessionID;
        ///账户编号
        AccountID: "",///TViAccountIDType	AccountID;
        ///资金账号
        AssetNo: "",///TViAssetNoType	AssetNo;
        ///持仓帐号
        CombiNo: "",///TViCombiNoType	CombiNo;
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        ///商品类型
        CommodityType: "",///TViCommodityTypeType	CommodityType;
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///合约名称
        InstrumentName: "",///TViInstrumentNameType	InstrumentName;
        ///报单价格条件
        OrderPriceType: "",///TViOrderPriceTypeType	OrderPriceType;
        ///买入卖出
        Direction: "",///TViDirectionType	Direction;
        ///开仓平仓
        OffsetFlag: "",///TViOffsetFlagType	OffsetFlag;
        ///投机保值
        HedgeFlag: "",///TViHedgeFlagType	HedgeFlag;
        ///委托价格
        Price: "",///TViPriceType	Price;
        ///委托数量
        Volume: "",///TViVolumeType	Volume;
        ///有效期类型
        TimeCondition: "",///TViTimeConditionType	TimeCondition;
        ///策略ID号
        RuleID: "",///TViRuleIDType	RuleID;
        ///用户代码
        CustomerID: "",///TViCustomerIDType	CustomerID;
        ///双边报价编号
        BilateralID: "",///TViOrderInnerIDType	BilateralID;
        ///申赎方式
        PurchaseWay: "",///TViPurchaseWayType	PurchaseWay;
        ///报单说明
        Text: "",///TViTextType	Text;
        ///到期收益率
        YTM: "",///TViRatioType	YTM;
        ///行权收益率
        StrikeYeild: "",///TViRatioType	StrikeYeild;
        ///报价类型
        QuoteType: "",///TViQuoteTypeType	QuoteType;
        ///最大显示量
        MaxFloor: "",///TViVolumeType	MaxFloor;
        ///最小变动量
        MinTickSize: "",///TViVolumeType	MinTickSize;
        ///清算速度
        LegSettlType: "",///TViLegSettlTypeType	LegSettlType;
        ///报价方式
        MatchType: "",///TViMatchTypeType	MatchType;
        ///结算方式
        DeliveryType: "",///TViDeliveryTypeType	DeliveryType;
        ///清算类型
        ClearingMethod: "",///TViClearingMethodType	ClearingMethod;
        ///报价编号
        QuoteID: "",///TViInstrumentIDType	QuoteID;
        ///报价有效时间
        ValidUntilTime: "",///TViFullDateTimeType	ValidUntilTime;
        ///行情发生时间
        MDEntryTime: "",///TViFullDateTimeType	MDEntryTime;
        ///客户参考编号
        ClOrdID: "",///TViClOrdIDType	ClOrdID;
        ///发送对象
        RoutingType: "",///TViRoutingTypeType	RoutingType;
        ///市场类型
        MarketIndicator: "",///TViMarketIndicatorType	MarketIndicator;
        ///实时承接标识
        RealTimeUndertakeFlag: "",///TViRealTimeUndertakeFlagType	RealTimeUndertakeFlag;
        ///本方主体类型
        SubjectPartyType: "",///TViSubjectPartyTypeType	SubjectPartyType;
        ///系统内部排序(字符串)
        OrderInnerID: "",///TViOrderInnerIDType	OrderInnerID;
        ///报单编号
        OrderSysID: "",///TViOrderSysIDType	OrderSysID;
        ///委托时间
        InsertTime: "",///TViTimeType	InsertTime;
        _id: 0
    }
};

///深度市场行情
var CViDepthMarketDataField = function () {
    return {
        ///交易日
        TradingDay: "",///TViDateType	TradingDay;
        ///昨结算
        PreSettlementPrice: "",///TViPriceType	PreSettlementPrice;
        ///昨收盘
        PreClosePrice: "",///TViPriceType	PreClosePrice;
        ///昨持仓量
        PreOpenInterest: "",///TViLargeVolumeType	PreOpenInterest;
        ///昨虚实度
        PreDelta: "",///TViRatioType	PreDelta;
        ///合约最高
        HistoryHigh: "",///TViPriceType	HistoryHigh;
        ///合约最低
        HistoryLow: "",///TViPriceType	HistoryLow;
        ///今开盘
        OpenPrice: "",///TViPriceType	OpenPrice;
        ///最高价
        HighestPrice: "",///TViPriceType	HighestPrice;
        ///最低价
        LowestPrice: "",///TViPriceType	LowestPrice;
        ///今收盘
        ClosePrice: "",///TViPriceType	ClosePrice;
        ///涨停板价
        UpperLimitPrice: "",///TViPriceType	UpperLimitPrice;
        ///跌停板价
        LowerLimitPrice: "",///TViPriceType	LowerLimitPrice;
        ///本次结算价
        ClearPrice: "",///TViPriceType	ClearPrice;
        ///今虚实度
        CurrDelta: "",///TViRatioType	CurrDelta;
        ///最新价
        LastPrice: "",///TViPriceType	LastPrice;
        ///数量
        Volume: "",///TViVolumeType	Volume;
        ///成交金额
        Turnover: "",///TViMoneyType	Turnover;
        ///持仓量
        OpenInterest: "",///TViLargeVolumeType	OpenInterest;
        ///涨跌
        NetChg: "",///TViPriceType	NetChg;
        ///涨跌幅
        Markup: "",///TViPriceType	Markup;
        ///振幅
        Swing: "",///TViRatioType	Swing;
        ///平均价
        AvgPrice: "",///TViPriceType	AvgPrice;
        ///申买价一
        BidPrice1: "",///TViPriceType	BidPrice1;
        ///申买量一
        BidVolume1: "",///TViVolumeType	BidVolume1;
        ///申卖价一
        AskPrice1: "",///TViPriceType	AskPrice1;
        ///申卖量一
        AskVolume1: "",///TViVolumeType	AskVolume1;
        ///申买价二
        BidPrice2: "",///TViPriceType	BidPrice2;
        ///申买量二
        BidVolume2: "",///TViVolumeType	BidVolume2;
        ///申买价三
        BidPrice3: "",///TViPriceType	BidPrice3;
        ///申买量三
        BidVolume3: "",///TViVolumeType	BidVolume3;
        ///申卖价二
        AskPrice2: "",///TViPriceType	AskPrice2;
        ///申卖量二
        AskVolume2: "",///TViVolumeType	AskVolume2;
        ///申卖价三
        AskPrice3: "",///TViPriceType	AskPrice3;
        ///申卖量三
        AskVolume3: "",///TViVolumeType	AskVolume3;
        ///申买价四
        BidPrice4: "",///TViPriceType	BidPrice4;
        ///申买量四
        BidVolume4: "",///TViVolumeType	BidVolume4;
        ///申买价五
        BidPrice5: "",///TViPriceType	BidPrice5;
        ///申买量五
        BidVolume5: "",///TViVolumeType	BidVolume5;
        ///申卖价四
        AskPrice4: "",///TViPriceType	AskPrice4;
        ///申卖量四
        AskVolume4: "",///TViVolumeType	AskVolume4;
        ///申卖价五
        AskPrice5: "",///TViPriceType	AskPrice5;
        ///申卖量五
        AskVolume5: "",///TViVolumeType	AskVolume5;
        ///申买价六
        BidPrice6: "",///TViPriceType	BidPrice6;
        ///申买量六
        BidVolume6: "",///TViVolumeType	BidVolume6;
        ///申买价七
        BidPrice7: "",///TViPriceType	BidPrice7;
        ///申买量七
        BidVolume7: "",///TViVolumeType	BidVolume7;
        ///申买价八
        BidPrice8: "",///TViPriceType	BidPrice8;
        ///申买量八
        BidVolume8: "",///TViVolumeType	BidVolume8;
        ///申买价九
        BidPrice9: "",///TViPriceType	BidPrice9;
        ///申买量九
        BidVolume9: "",///TViVolumeType	BidVolume9;
        ///申买价十
        BidPrice10: "",///TViPriceType	BidPrice10;
        ///申买量十
        BidVolume10: "",///TViVolumeType	BidVolume10;
        ///申卖价六
        AskPrice6: "",///TViPriceType	AskPrice6;
        ///申卖量六
        AskVolume6: "",///TViVolumeType	AskVolume6;
        ///申卖价七
        AskPrice7: "",///TViPriceType	AskPrice7;
        ///申卖量七
        AskVolume7: "",///TViVolumeType	AskVolume7;
        ///申卖价八
        AskPrice8: "",///TViPriceType	AskPrice8;
        ///申卖量八
        AskVolume8: "",///TViVolumeType	AskVolume8;
        ///申卖价九
        AskPrice9: "",///TViPriceType	AskPrice9;
        ///申卖量九
        AskVolume9: "",///TViVolumeType	AskVolume9;
        ///申卖价十
        AskPrice10: "",///TViPriceType	AskPrice10;
        ///申卖量十
        AskVolume10: "",///TViVolumeType	AskVolume10;
        ///序号
        SequenceNo: "",///TViSequenceNoType	SequenceNo;
        ///市场中文名
        MarketName: "",///TViMarketNameType	MarketName;
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///合约名称
        InstrumentName: "",///TViInstrumentNameType	InstrumentName;
        ///商品类型
        CommodityType: "",///TViCommodityTypeType	CommodityType;
        ///最后修改时间
        UpdateTime: "",///TViTimeType	UpdateTime;
        ///最后修改毫秒
        UpdateMillisec: "",///TViMillisecType	UpdateMillisec;
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        _id: 0
    }
};

///市场行情BAR
var CViMarketDataBarField = function () {
    return {
        ///交易日
        TradingDay: "",///TViDateType	TradingDay;
        ///昨收盘 上一根线的收盘价
        PreClosePrice: "",///TViPriceType	PreClosePrice;
        ///今开盘 当前周期的开盘价
        OpenPrice: "",///TViPriceType	OpenPrice;
        ///最高价 当前周期的最高价
        HighestPrice: "",///TViPriceType	HighestPrice;
        ///最低价 当前周期的最低价
        LowestPrice: "",///TViPriceType	LowestPrice;
        ///今收盘 当前周期的收盘价
        ClosePrice: "",///TViPriceType	ClosePrice;
        ///成交量
        Volume: "",///TViVolumeType	Volume;
        ///成交金额
        Turnover: "",///TViMoneyType	Turnover;
        ///持仓量
        OpenInterest: "",///TViLargeVolumeType	OpenInterest;
        ///持仓量变化
        OpenInterestChg: "",///TViLargeVolumeType	OpenInterestChg;
        ///涨跌额
        NetChg: "",///TViPriceType	NetChg;
        ///涨跌幅
        Markup: "",///TViPriceType	Markup;
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///当前周期时间
        BarTimeGrid: "",///TViTimeType	BarTimeGrid;
        ///按分钟记的时间周期
        BarPeriod: "",///TViBarPeriodType	BarPeriod;
        ///市场中文名
        MarketName: "",///TViMarketNameType	MarketName;
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        _id: 0
    }
};

///合约状态查询条件
var CViQryInstrumentStatusField = function () {
    return {
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        _id: 0
    }
};

///合约状态
var CViInstrumentStatusField = function () {
    return {
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        ///商品代码
        CommodityID: "",///TViCommodityIDType	CommodityID;
        ///商品类型
        CommodityType: "",///TViCommodityTypeType	CommodityType;
        ///合约
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///交易所代号
        ExchangeCode: "",///TViExchangeCodeType	ExchangeCode;
        ///合约名称
        InstrumentName: "",///TViInstrumentNameType	InstrumentName;
        ///合约交易状态
        InstrumentStatus: "",///TViInstrumentStatusType	InstrumentStatus;
        _id: 0
    }
};

///合约查询条件
var CViQryInstrumentField = function () {
    return {
        ///接口类型
        ApiType: "",///TViApiTypeType	ApiType;
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        ///商品
        CommodityID: "",///TViCommodityIDType	CommodityID;
        _id: 0
    }
};

///合约
var CViInstrumentField = function () {
    return {
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        ///商品代码
        CommodityID: "",///TViCommodityIDType	CommodityID;
        ///商品类型
        CommodityType: "",///TViCommodityTypeType	CommodityType;
        ///合约
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///交易所代号
        ExchangeCode: "",///TViExchangeCodeType	ExchangeCode;
        ///合约名称
        InstrumentName: "",///TViInstrumentNameType	InstrumentName;
        ///每手乘数
        MultipleValue: "",///TViProductDotType	MultipleValue;
        ///最小变动价位
        PriceTick: "",///TViPriceType	PriceTick;
        ///市价单最大下单量
        MaxMarketOrderVolume: "",///TViVolumeType	MaxMarketOrderVolume;
        ///市价单最小下单量
        MinMarketOrderVolume: "",///TViVolumeType	MinMarketOrderVolume;
        ///限价单最大下单量
        MaxLimitOrderVolume: "",///TViVolumeType	MaxLimitOrderVolume;
        ///限价单最小下单量
        MinLimitOrderVolume: "",///TViVolumeType	MinLimitOrderVolume;
        ///创建日
        CreateDate: "",///TViDateType	CreateDate;
        ///上市日
        OpenDate: "",///TViDateType	OpenDate;
        ///到期日
        ExpireDate: "",///TViDateType	ExpireDate;
        ///开始交割日
        StartDelivDate: "",///TViDateType	StartDelivDate;
        ///结束交割日
        EndDelivDate: "",///TViDateType	EndDelivDate;
        ///持仓类型
        PositionType: "",///TViPositionTypeType	PositionType;
        ///持仓日期类型
        PositionDateType: "",///TViPositionDateTypeType	PositionDateType;
        ///是否使用大额单边保证金算法
        MaxMarginSideAlgorithm: "",///TViMaxMarginSideAlgorithmType	MaxMarginSideAlgorithm;
        ///涨停板价
        UpperLimitPrice: "",///TViUpperLimitPriceType	UpperLimitPrice;
        ///跌停板价
        LowerLimitPrice: "",///TViLowerLimitPriceType	LowerLimitPrice;
        ///昨结算
        PreSettlementPrice: "",///TViPreSettlementPriceType	PreSettlementPrice;
        ///币种类型
        CurrencyType: "",///TViCurrencyTypeType	CurrencyType;
        ///市场类型
        MarketIndicator: "",///TViMarketIndicatorType	MarketIndicator;
        ///基础商品代码
        UnderlyingInstrID: "",///TViUnderlyingInstrIDType	UnderlyingInstrID;
        ///基础商品乘数
        UnderlyingMultiple: "",///TViUnderlyingMultipleType	UnderlyingMultiple;
        ///执行价
        StrikePrice: "",///TViStrikePriceType	StrikePrice;
        ///期权类型
        OptionsType: "",///TViOptionsTypeType	OptionsType;
        _id: 0
    }
};

///订阅行情
var CViSpecificInstrumentField = function () {
    return {
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///持仓帐号
        CombiNo: "",///TViCombiNoType	CombiNo;
        _id: 0
    }
};

///成交
var CViTradeField = function () {
    return {
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        ///交易日
        TradingDay: "",///TViDateType	TradingDay;
        ///成交号
        TradeID: "",///TViTradeIDType	TradeID;
        ///报单编号
        OrderSysID: "",///TViOrderSysIDType	OrderSysID;
        ///系统内部排序(字符串)
        OrderInnerID: "",///TViOrderInnerIDType	OrderInnerID;
        ///商品代码
        CommodityID: "",///TViCommodityIDType	CommodityID;
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///交易员代码
        UserID: "",///TViUserIDType	UserID;
        ///买入卖出
        Direction: "",///TViDirectionType	Direction;
        ///开仓平仓
        OffsetFlag: "",///TViOffsetFlagType	OffsetFlag;
        ///投机保值
        HedgeFlag: "",///TViHedgeFlagType	HedgeFlag;
        ///成交价
        TradePrice: "",///TViPriceType	TradePrice;
        ///到期收益率
        YTM: "",///TViRatioType	YTM;
        ///成交数量
        VolumeTraded: "",///TViVolumeType	VolumeTraded;
        ///成交日期
        TradeDate: "",///TViDateType	TradeDate;
        ///成交时间
        TradeTime: "",///TViTimeType	TradeTime;
        ///手续费
        TradeFee: "",///TViMoneyType	TradeFee;
        ///手续费币种
        CurrencyID: "",///TViCurrencyIDType	CurrencyID;
        ///手工手续费
        ManualFee: "",///TViManualFeeType	ManualFee;
        ///删除标志
        Deleted: "",///TViDeletedType	Deleted;
        ///平仓价格
        CoverPrice: "",///TViPriceType	CoverPrice;
        ///合约在交易所的代码
        ExchangeInstID: "",///TViInstrumentIDType	ExchangeInstID;
        ///经纪会员代码
        BrokerID: "",///TViBrokerIDType	BrokerID;
        ///投资者代码
        InvestorID: "",///TViInvestorIDType	InvestorID;
        ///策略ID号
        RuleID: "",///TViRuleIDType	RuleID;
        ///用户代码
        CustomerID: "",///TViCustomerIDType	CustomerID;
        ///账户编号
        AccountID: "",///TViAccountIDType	AccountID;
        ///商品类型
        CommodityType: "",///TViCommodityTypeType	CommodityType;
        ///资金账号
        AssetNo: "",///TViAssetNoType	AssetNo;
        ///持仓帐号
        CombiNo: "",///TViCombiNoType	CombiNo;
        ///双边报价编号
        BilateralID: "",///TViOrderInnerIDType	BilateralID;
        ///客户ID
        ClientID: "",///TViPartyIDType	ClientID;
        ///报价类型
        QuoteType: "",///TViQuoteTypeType	QuoteType;
        _id: 0
    }
};

///报单
var CViOrderField = function () {
    return {
        ///前置编号
        FrontID: "",///TViFrontIDType	FrontID;
        ///会话编号
        SessionID: "",///TViSessionIDType	SessionID;
        ///账户编号
        AccountID: "",///TViAccountIDType	AccountID;
        ///资金账号
        AssetNo: "",///TViAssetNoType	AssetNo;
        ///持仓帐号
        CombiNo: "",///TViCombiNoType	CombiNo;
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        ///商品类型
        CommodityType: "",///TViCommodityTypeType	CommodityType;
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///合约名称
        InstrumentName: "",///TViInstrumentNameType	InstrumentName;
        ///报单价格条件
        OrderPriceType: "",///TViOrderPriceTypeType	OrderPriceType;
        ///买入卖出
        Direction: "",///TViDirectionType	Direction;
        ///开仓平仓
        OffsetFlag: "",///TViOffsetFlagType	OffsetFlag;
        ///投机保值
        HedgeFlag: "",///TViHedgeFlagType	HedgeFlag;
        ///委托价格
        Price: "",///TViPriceType	Price;
        ///委托数量
        Volume: "",///TViVolumeType	Volume;
        ///有效期类型
        TimeCondition: "",///TViTimeConditionType	TimeCondition;
        ///策略ID号
        RuleID: "",///TViRuleIDType	RuleID;
        ///用户代码
        CustomerID: "",///TViCustomerIDType	CustomerID;
        ///双边报价编号
        BilateralID: "",///TViOrderInnerIDType	BilateralID;
        ///申赎方式
        PurchaseWay: "",///TViPurchaseWayType	PurchaseWay;
        ///报单说明
        Text: "",///TViTextType	Text;
        ///到期收益率
        YTM: "",///TViRatioType	YTM;
        ///行权收益率
        StrikeYeild: "",///TViRatioType	StrikeYeild;
        ///报价类型
        QuoteType: "",///TViQuoteTypeType	QuoteType;
        ///最大显示量
        MaxFloor: "",///TViVolumeType	MaxFloor;
        ///最小变动量
        MinTickSize: "",///TViVolumeType	MinTickSize;
        ///清算速度
        LegSettlType: "",///TViLegSettlTypeType	LegSettlType;
        ///报价方式
        MatchType: "",///TViMatchTypeType	MatchType;
        ///结算方式
        DeliveryType: "",///TViDeliveryTypeType	DeliveryType;
        ///清算类型
        ClearingMethod: "",///TViClearingMethodType	ClearingMethod;
        ///报价编号
        QuoteID: "",///TViInstrumentIDType	QuoteID;
        ///报价有效时间
        ValidUntilTime: "",///TViFullDateTimeType	ValidUntilTime;
        ///行情发生时间
        MDEntryTime: "",///TViFullDateTimeType	MDEntryTime;
        ///客户参考编号
        ClOrdID: "",///TViClOrdIDType	ClOrdID;
        ///发送对象
        RoutingType: "",///TViRoutingTypeType	RoutingType;
        ///市场类型
        MarketIndicator: "",///TViMarketIndicatorType	MarketIndicator;
        ///实时承接标识
        RealTimeUndertakeFlag: "",///TViRealTimeUndertakeFlagType	RealTimeUndertakeFlag;
        ///本方主体类型
        SubjectPartyType: "",///TViSubjectPartyTypeType	SubjectPartyType;
        ///系统内部排序(字符串)
        OrderInnerID: "",///TViOrderInnerIDType	OrderInnerID;
        ///报单编号
        OrderSysID: "",///TViOrderSysIDType	OrderSysID;
        ///委托时间
        InsertTime: "",///TViTimeType	InsertTime;
        ///交易日
        TradingDay: "",///TViDateType	TradingDay;
        ///成交价格
        TradePrice: "",///TViPriceType	TradePrice;
        ///今成交数量
        VolumeTraded: "",///TViVolumeType	VolumeTraded;
        ///剩余数量
        VolumeTotal: "",///TViVolumeType	VolumeTotal;
        ///报单提交状态
        OrderSubmitStatus: "",///TViOrderSubmitStatusType	OrderSubmitStatus;
        ///报单状态
        OrderStatus: "",///TViOrderStatusType	OrderStatus;
        ///报单日期
        InsertDate: "",///TViDateType	InsertDate;
        ///更新日期
        UpdateDate: "",///TViDateType	UpdateDate;
        ///更新时间
        UpdateTime: "",///TViTimeType	UpdateTime;
        ///撤销时间
        CancelTime: "",///TViTimeType	CancelTime;
        ///最后一次操作错误信息码
        ErrorCode: "",///TViErrorIDType	ErrorCode;
        ///状态信息
        StatusMsg: "",///TViErrorMsgType	StatusMsg;
        ///结算编号
        SettlementID: "",///TViSettlementIDType	SettlementID;
        ///报单来源
        OrderSource: "",///TViOrderSourceType	OrderSource;
        ///客户ID
        ClientID: "",///TViPartyIDType	ClientID;
        _id: 0
    }
};

///报单操作
var CViInputOrderActionField = function () {
    return {
        ///前置编号
        FrontID: "",///TViFrontIDType	FrontID;
        ///会话编号
        SessionID: "",///TViSessionIDType	SessionID;
        ///系统内部排序(字符串)
        OrderInnerID: "",///TViOrderInnerIDType	OrderInnerID;
        ///投资者编号
        InvestorID: "",///TViInvestorIDType	InvestorID;
        ///用户代码
        UserID: "",///TViUserIDType	UserID;
        ///操作标志
        ActionFlag: "",///TViActionFlagType	ActionFlag;
        ///委托价格
        Price: "",///TViPriceType	Price;
        ///委托数量
        Volume: "",///TViVolumeType	Volume;
        ///经纪会员代码
        BrokerID: "",///TViBrokerIDType	BrokerID;
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        ///报单编号
        OrderSysID: "",///TViOrderSysIDType	OrderSysID;
        ///策略ID号
        RuleID: "",///TViRuleIDType	RuleID;
        ///用户代码
        CustomerID: "",///TViCustomerIDType	CustomerID;
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///商品类型
        CommodityType: "",///TViCommodityTypeType	CommodityType;
        ///报价方式
        MatchType: "",///TViMatchTypeType	MatchType;
        ///报价类型
        QuoteType: "",///TViQuoteTypeType	QuoteType;
        ///报价有效时间
        ValidUntilTime: "",///TViFullDateTimeType	ValidUntilTime;
        ///业务发生时间
        TransactTime: "",///TViFullDateTimeType	TransactTime;
        ///原客户参考编号
        origClOrdID: "",///TViClOrdIDType	origClOrdID;
        ///市场类型
        MarketIndicator: "",///TViMarketIndicatorType	MarketIndicator;
        ///买入卖出
        Direction: "",///TViDirectionType	Direction;
        ///报单编号
        QuoteReqID: "",///TViOrderSysIDType	QuoteReqID;
        ///到期收益率
        YTM: "",///TViRatioType	YTM;
        ///行权收益率
        StrikeYeild: "",///TViRatioType	StrikeYeild;
        _id: 0
    }
};

///加载Rule
var CViInputRuleField = function () {
    return {
        ///策略代码
        RuleID: "",///TViRuleIDType	RuleID;
        ///策略Dll存储位置
        RulePath: "",///TViRulePathType	RulePath;
        ///策略版本
        RuleVersion: "",///TViRuleVersionType	RuleVersion;
        ///策略名称
        RuleName: "",///TViRuleNameType	RuleName;
        ///策略配置文件存储位置
        ConfigPath: "",///TViRulePathType	ConfigPath;
        ///用户代码
        CustomerID: "",///TViCustomerIDType	CustomerID;
        ///是否客户端加载
        IsClientLoaded: "",///TViBoolType	IsClientLoaded;
        _id: 0
    }
};

///Rule信息
var CViRuleField = function () {
    return {
        ///策略代码
        RuleID: "",///TViRuleIDType	RuleID;
        ///策略Dll存储位置
        RulePath: "",///TViRulePathType	RulePath;
        ///策略版本
        RuleVersion: "",///TViRuleVersionType	RuleVersion;
        ///策略名称
        RuleName: "",///TViRuleNameType	RuleName;
        ///策略配置文件存储位置
        ConfigPath: "",///TViRulePathType	ConfigPath;
        ///用户代码
        CustomerID: "",///TViCustomerIDType	CustomerID;
        ///是否客户端加载
        IsClientLoaded: "",///TViBoolType	IsClientLoaded;
        _id: 0
    }
};

///Rule操作
var CViRuleActionField = function () {
    return {
        ///策略代码
        RuleID: "",///TViRuleIDType	RuleID;
        _id: 0
    }
};

///Rule运行状态操作
var CViRuleStatusActionField = function () {
    return {
        ///策略代码
        RuleID: "",///TViRuleIDType	RuleID;
        ///策略运行状态类型设定
        RuleOperType: "",///TViRuleOperTypeType	RuleOperType;
        _id: 0
    }
};

///Rule状态
var CViRuleStatusField = function () {
    return {
        ///策略代码
        RuleID: "",///TViRuleIDType	RuleID;
        ///策略运行状态
        RuleRunStatus: "",///TViRuleRunStatusType	RuleRunStatus;
        _id: 0
    }
};

///Rule属性
var CViRulePropField = function () {
    return {
        ///策略代码
        RuleID: "",///TViRuleIDType	RuleID;
        ///策略属性键
        PropKey: "",///TViPropKeyType	PropKey;
        ///策略属性值
        PropValue: "",///TViPropValueType	PropValue;
        ///策略属性值类型
        PropType: "",///TViPropTypeType	PropType;
        ///策略属性值选项
        PropValueItems: "",///TViPropValueItemsType	PropValueItems;
        ///描述
        Description: "",///TViDescriptionType	Description;
        _id: 0
    }
};

///Rule查询
var CViQryRuleField = function () {
    return {
        ///策略代码
        RuleID: "",///TViRuleIDType	RuleID;
        _id: 0
    }
};

///账号查询条件
var CViQryAccountField = function () {
    return {
        ///资金账号
        AssetNo: "",///TViAssetNoType	AssetNo;
        _id: 0
    }
};

///账号查询条件
var CViAccountField = function () {
    return {
        ///经纪公司代码
        BrokerID: "",///TViBrokerIDType	BrokerID;
        ///投资者代码
        InvestorID: "",///TViInvestorIDType	InvestorID;
        ///资金账号
        AssetNo: "",///TViAssetNoType	AssetNo;
        ///上次结算准备金
        PreBalance: "",///TViPreBalanceType	PreBalance;
        ///入金金额
        Deposit: "",///TViDepositType	Deposit;
        ///出金金额
        Withdraw: "",///TViWithdrawType	Withdraw;
        ///冻结的保证金
        FrozenMargin: "",///TViMoneyType	FrozenMargin;
        ///冻结手续费
        FrozenFee: "",///TViMoneyType	FrozenFee;
        ///冻结权利金
        FrozenPremium: "",///TViFrozenPremiumType	FrozenPremium;
        ///手续费
        Fee: "",///TViFeeType	Fee;
        ///平仓盈亏
        CloseProfit: "",///TViCloseProfitType	CloseProfit;
        ///持仓盈亏
        PositionProfit: "",///TViPositionProfitType	PositionProfit;
        ///可用资金
        Available: "",///TViAvailableType	Available;
        ///多头冻结的保证金
        LongFrozenMargin: "",///TViLongFrozenMarginType	LongFrozenMargin;
        ///空头冻结的保证金
        ShortFrozenMargin: "",///TViShortFrozenMarginType	ShortFrozenMargin;
        ///多头占用保证金
        LongMargin: "",///TViLongMarginType	LongMargin;
        ///空头占用保证金
        ShortMargin: "",///TViShortMarginType	ShortMargin;
        ///当日释放保证金
        ReleaseMargin: "",///TViReleaseMarginType	ReleaseMargin;
        ///动态权益
        DynamicRights: "",///TViDynamicRightsType	DynamicRights;
        ///今日出入金
        TodayInOut: "",///TViTodayInOutType	TodayInOut;
        ///占用保证金
        Margin: "",///TViMarginType	Margin;
        ///期权权利金收支
        Premium: "",///TViPremiumType	Premium;
        ///风险度
        Risk: "",///TViRiskType	Risk;
        _id: 0
    }
};

///持仓查询条件
var CViQryPositionField = function () {
    return {
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///持仓多空方向
        PosiDirection: "",///TViPosiDirectionType	PosiDirection;
        ///投机套保标志
        HedgeFlag: "",///TViHedgeFlagType	HedgeFlag;
        _id: 0
    }
};

///持仓查询条件
var CViPositionField = function () {
    return {
        ///投资者编号
        InvestorID: "",///TViInvestorIDType	InvestorID;
        ///经纪公司代码
        BrokerID: "",///TViBrokerIDType	BrokerID;
        ///资金账号
        AssetNo: "",///TViAssetNoType	AssetNo;
        ///持仓账号
        CombiNo: "",///TViCombiNoType	CombiNo;
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        ///客户代码
        ClientID: "",///TViClientIDType	ClientID;
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///持仓多空方向
        PosiDirection: "",///TViPosiDirectionType	PosiDirection;
        ///投机套保标志
        HedgeFlag: "",///TViHedgeFlagType	HedgeFlag;
        ///占用保证金
        UsedMargin: "",///TViUsedMarginType	UsedMargin;
        ///今持仓量
        Position: "",///TViVolumeType	Position;
        ///今日持仓成本
        PositionCost: "",///TViPositionCostType	PositionCost;
        ///昨持仓量
        YdPosition: "",///TViVolumeType	YdPosition;
        ///昨日持仓成本
        YdPositionCost: "",///TViYdPositionCostType	YdPositionCost;
        ///冻结的保证金
        FrozenMargin: "",///TViFrozenMarginType	FrozenMargin;
        ///开仓冻结持仓
        FrozenPosition: "",///TViVolumeType	FrozenPosition;
        ///平仓冻结持仓
        FrozenClosing: "",///TViVolumeType	FrozenClosing;
        ///冻结的权利金
        FrozenPremium: "",///TViFrozenPremiumType	FrozenPremium;
        ///最后一笔成交编号
        LastTradeID: "",///TViLastTradeIDType	LastTradeID;
        ///最后一笔本地报单编号
        LastOrderLocalID: "",///TViLastOrderLocalIDType	LastOrderLocalID;
        ///币种
        Currency: "",///TViCurrencyType	Currency;
        ///昨结算价
        PreSettlementPrice: "",///TViPriceType	PreSettlementPrice;
        _id: 0
    }
};

///Rule资金变动通知
var CViRuleAccountField = function () {
    return {
        ///经纪公司代码
        BrokerID: "",///TViBrokerIDType	BrokerID;
        ///投资者代码
        InvestorID: "",///TViInvestorIDType	InvestorID;
        ///资金账号
        AssetNo: "",///TViAssetNoType	AssetNo;
        ///上次结算准备金
        PreBalance: "",///TViPreBalanceType	PreBalance;
        ///入金金额
        Deposit: "",///TViDepositType	Deposit;
        ///出金金额
        Withdraw: "",///TViWithdrawType	Withdraw;
        ///冻结的保证金
        FrozenMargin: "",///TViMoneyType	FrozenMargin;
        ///冻结手续费
        FrozenFee: "",///TViMoneyType	FrozenFee;
        ///冻结权利金
        FrozenPremium: "",///TViFrozenPremiumType	FrozenPremium;
        ///手续费
        Fee: "",///TViFeeType	Fee;
        ///平仓盈亏
        CloseProfit: "",///TViCloseProfitType	CloseProfit;
        ///持仓盈亏
        PositionProfit: "",///TViPositionProfitType	PositionProfit;
        ///可用资金
        Available: "",///TViAvailableType	Available;
        ///多头冻结的保证金
        LongFrozenMargin: "",///TViLongFrozenMarginType	LongFrozenMargin;
        ///空头冻结的保证金
        ShortFrozenMargin: "",///TViShortFrozenMarginType	ShortFrozenMargin;
        ///多头占用保证金
        LongMargin: "",///TViLongMarginType	LongMargin;
        ///空头占用保证金
        ShortMargin: "",///TViShortMarginType	ShortMargin;
        ///当日释放保证金
        ReleaseMargin: "",///TViReleaseMarginType	ReleaseMargin;
        ///动态权益
        DynamicRights: "",///TViDynamicRightsType	DynamicRights;
        ///今日出入金
        TodayInOut: "",///TViTodayInOutType	TodayInOut;
        ///占用保证金
        Margin: "",///TViMarginType	Margin;
        ///期权权利金收支
        Premium: "",///TViPremiumType	Premium;
        ///风险度
        Risk: "",///TViRiskType	Risk;
        ///策略代码
        RuleID: "",///TViRuleIDType	RuleID;
        ///用户代码
        CustomerID: "",///TViCustomerIDType	CustomerID;
        ///交易日
        TradingDay: "",///TViDateType	TradingDay;
        _id: 0
    }
};

///Rule持仓变动通知
var CViRulePositionField = function () {
    return {
        ///交易日
        TradingDay: "",///TViDateType	TradingDay;
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        ///商品代码
        CommodityID: "",///TViCommodityIDType	CommodityID;
        ///交易所合约代码
        ExchangeInstID: "",///TViInstrumentIDType	ExchangeInstID;
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///持仓多空方向
        PosiDirection: "",///TViPosiDirectionType	PosiDirection;
        ///投机套保标志
        HedgeFlag: "",///TViHedgeFlagType	HedgeFlag;
        ///逐日盯市持仓盈亏
        PositionProfitByDate: "",///TViMoneyType	PositionProfitByDate;
        ///逐笔对冲持仓盈亏
        PositionProfitByTrade: "",///TViMoneyType	PositionProfitByTrade;
        ///逐日盯市平仓盈亏
        CloseProfitByDate: "",///TViMoneyType	CloseProfitByDate;
        ///逐笔对冲平仓盈亏
        CloseProfitByTrade: "",///TViMoneyType	CloseProfitByTrade;
        ///持仓日期类别
        PositionDate: "",///TViPositionDateType	PositionDate;
        ///上日持仓
        YdPosition: "",///TViVolumeType	YdPosition;
        ///持仓量
        Position: "",///TViVolumeType	Position;
        ///今日持仓
        TodayPosition: "",///TViVolumeType	TodayPosition;
        ///持仓冻结
        FrozenPosition: "",///TViVolumeType	FrozenPosition;
        ///冻结金额
        FrozenAmount: "",///TViMoneyType	FrozenAmount;
        ///开仓量
        OpenVolume: "",///TViVolumeType	OpenVolume;
        ///平仓量
        CloseVolume: "",///TViVolumeType	CloseVolume;
        ///开仓金额
        OpenAmount: "",///TViMoneyType	OpenAmount;
        ///平仓金额
        CloseAmount: "",///TViMoneyType	CloseAmount;
        ///持仓成本
        PositionCost: "",///TViMoneyType	PositionCost;
        ///开仓成本
        OpenCost: "",///TViMoneyType	OpenCost;
        ///上次占用的保证金
        PreMargin: "",///TViMoneyType	PreMargin;
        ///占用的保证金
        UseMargin: "",///TViMoneyType	UseMargin;
        ///冻结的保证金
        FrozenMargin: "",///TViMoneyType	FrozenMargin;
        ///冻结的资金
        FrozenCash: "",///TViMoneyType	FrozenCash;
        ///冻结的手续费
        FrozenCommission: "",///TViMoneyType	FrozenCommission;
        ///资金差额
        Adjust: "",///TViMoneyType	Adjust;
        ///手续费
        TradeCommission: "",///TViMoneyType	TradeCommission;
        ///上次结算价
        PreSettlementPrice: "",///TViPriceType	PreSettlementPrice;
        ///规则代码
        RuleID: "",///TViRuleIDType	RuleID;
        ///用户代码
        CustomerID: "",///TViCustomerIDType	CustomerID;
        ///实体账户代码
        TraderID: "",///TViTraderIDType	TraderID;
        ///资金账号
        AssetNo: "",///TViAssetNoType	AssetNo;
        ///持仓帐号
        CombiNo: "",///TViCombiNoType	CombiNo;
        ///多头冻结
        LongFrozen: "",///TViVolumeType	LongFrozen;
        ///空头冻结
        ShortFrozen: "",///TViVolumeType	ShortFrozen;
        ///冻结金额
        LongFrozenAmount: "",///TViMoneyType	LongFrozenAmount;
        ///冻结金额
        ShortFrozenAmount: "",///TViMoneyType	ShortFrozenAmount;
        ///保证金率(按手数)
        MarginRateByVolume: "",///TViRatioType	MarginRateByVolume;
        ///保证金率
        MarginRateByMoney: "",///TViRatioType	MarginRateByMoney;
        _id: 0
    }
};

///Rule报单信息
var CViRuleOrderField = function () {
    return {
        ///前置编号
        FrontID: "",///TViFrontIDType	FrontID;
        ///会话编号
        SessionID: "",///TViSessionIDType	SessionID;
        ///账户编号
        AccountID: "",///TViAccountIDType	AccountID;
        ///资金账号
        AssetNo: "",///TViAssetNoType	AssetNo;
        ///持仓帐号
        CombiNo: "",///TViCombiNoType	CombiNo;
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        ///商品类型
        CommodityType: "",///TViCommodityTypeType	CommodityType;
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///合约名称
        InstrumentName: "",///TViInstrumentNameType	InstrumentName;
        ///报单价格条件
        OrderPriceType: "",///TViOrderPriceTypeType	OrderPriceType;
        ///买入卖出
        Direction: "",///TViDirectionType	Direction;
        ///开仓平仓
        OffsetFlag: "",///TViOffsetFlagType	OffsetFlag;
        ///投机保值
        HedgeFlag: "",///TViHedgeFlagType	HedgeFlag;
        ///委托价格
        Price: "",///TViPriceType	Price;
        ///委托数量
        Volume: "",///TViVolumeType	Volume;
        ///有效期类型
        TimeCondition: "",///TViTimeConditionType	TimeCondition;
        ///策略ID号
        RuleID: "",///TViRuleIDType	RuleID;
        ///用户代码
        CustomerID: "",///TViCustomerIDType	CustomerID;
        ///双边报价编号
        BilateralID: "",///TViOrderInnerIDType	BilateralID;
        ///申赎方式
        PurchaseWay: "",///TViPurchaseWayType	PurchaseWay;
        ///报单说明
        Text: "",///TViTextType	Text;
        ///到期收益率
        YTM: "",///TViRatioType	YTM;
        ///行权收益率
        StrikeYeild: "",///TViRatioType	StrikeYeild;
        ///报价类型
        QuoteType: "",///TViQuoteTypeType	QuoteType;
        ///最大显示量
        MaxFloor: "",///TViVolumeType	MaxFloor;
        ///最小变动量
        MinTickSize: "",///TViVolumeType	MinTickSize;
        ///清算速度
        LegSettlType: "",///TViLegSettlTypeType	LegSettlType;
        ///报价方式
        MatchType: "",///TViMatchTypeType	MatchType;
        ///结算方式
        DeliveryType: "",///TViDeliveryTypeType	DeliveryType;
        ///清算类型
        ClearingMethod: "",///TViClearingMethodType	ClearingMethod;
        ///报价编号
        QuoteID: "",///TViInstrumentIDType	QuoteID;
        ///报价有效时间
        ValidUntilTime: "",///TViFullDateTimeType	ValidUntilTime;
        ///行情发生时间
        MDEntryTime: "",///TViFullDateTimeType	MDEntryTime;
        ///客户参考编号
        ClOrdID: "",///TViClOrdIDType	ClOrdID;
        ///发送对象
        RoutingType: "",///TViRoutingTypeType	RoutingType;
        ///市场类型
        MarketIndicator: "",///TViMarketIndicatorType	MarketIndicator;
        ///实时承接标识
        RealTimeUndertakeFlag: "",///TViRealTimeUndertakeFlagType	RealTimeUndertakeFlag;
        ///本方主体类型
        SubjectPartyType: "",///TViSubjectPartyTypeType	SubjectPartyType;
        ///系统内部排序(字符串)
        OrderInnerID: "",///TViOrderInnerIDType	OrderInnerID;
        ///报单编号
        OrderSysID: "",///TViOrderSysIDType	OrderSysID;
        ///委托时间
        InsertTime: "",///TViTimeType	InsertTime;
        ///交易日
        TradingDay: "",///TViDateType	TradingDay;
        ///成交价格
        TradePrice: "",///TViPriceType	TradePrice;
        ///今成交数量
        VolumeTraded: "",///TViVolumeType	VolumeTraded;
        ///剩余数量
        VolumeTotal: "",///TViVolumeType	VolumeTotal;
        ///报单提交状态
        OrderSubmitStatus: "",///TViOrderSubmitStatusType	OrderSubmitStatus;
        ///报单状态
        OrderStatus: "",///TViOrderStatusType	OrderStatus;
        ///报单日期
        InsertDate: "",///TViDateType	InsertDate;
        ///更新日期
        UpdateDate: "",///TViDateType	UpdateDate;
        ///更新时间
        UpdateTime: "",///TViTimeType	UpdateTime;
        ///撤销时间
        CancelTime: "",///TViTimeType	CancelTime;
        ///最后一次操作错误信息码
        ErrorCode: "",///TViErrorIDType	ErrorCode;
        ///状态信息
        StatusMsg: "",///TViErrorMsgType	StatusMsg;
        ///结算编号
        SettlementID: "",///TViSettlementIDType	SettlementID;
        ///报单来源
        OrderSource: "",///TViOrderSourceType	OrderSource;
        ///客户ID
        ClientID: "",///TViPartyIDType	ClientID;
        _id: 0
    }
};

///Rule成交信息
var CViRuleTradeField = function () {
    return {
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        ///交易日
        TradingDay: "",///TViDateType	TradingDay;
        ///成交号
        TradeID: "",///TViTradeIDType	TradeID;
        ///报单编号
        OrderSysID: "",///TViOrderSysIDType	OrderSysID;
        ///系统内部排序(字符串)
        OrderInnerID: "",///TViOrderInnerIDType	OrderInnerID;
        ///商品代码
        CommodityID: "",///TViCommodityIDType	CommodityID;
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///交易员代码
        UserID: "",///TViUserIDType	UserID;
        ///买入卖出
        Direction: "",///TViDirectionType	Direction;
        ///开仓平仓
        OffsetFlag: "",///TViOffsetFlagType	OffsetFlag;
        ///投机保值
        HedgeFlag: "",///TViHedgeFlagType	HedgeFlag;
        ///成交价
        TradePrice: "",///TViPriceType	TradePrice;
        ///到期收益率
        YTM: "",///TViRatioType	YTM;
        ///成交数量
        VolumeTraded: "",///TViVolumeType	VolumeTraded;
        ///成交日期
        TradeDate: "",///TViDateType	TradeDate;
        ///成交时间
        TradeTime: "",///TViTimeType	TradeTime;
        ///手续费
        TradeFee: "",///TViMoneyType	TradeFee;
        ///手续费币种
        CurrencyID: "",///TViCurrencyIDType	CurrencyID;
        ///手工手续费
        ManualFee: "",///TViManualFeeType	ManualFee;
        ///删除标志
        Deleted: "",///TViDeletedType	Deleted;
        ///平仓价格
        CoverPrice: "",///TViPriceType	CoverPrice;
        ///合约在交易所的代码
        ExchangeInstID: "",///TViInstrumentIDType	ExchangeInstID;
        ///经纪会员代码
        BrokerID: "",///TViBrokerIDType	BrokerID;
        ///投资者代码
        InvestorID: "",///TViInvestorIDType	InvestorID;
        ///策略ID号
        RuleID: "",///TViRuleIDType	RuleID;
        ///用户代码
        CustomerID: "",///TViCustomerIDType	CustomerID;
        ///账户编号
        AccountID: "",///TViAccountIDType	AccountID;
        ///商品类型
        CommodityType: "",///TViCommodityTypeType	CommodityType;
        ///资金账号
        AssetNo: "",///TViAssetNoType	AssetNo;
        ///持仓帐号
        CombiNo: "",///TViCombiNoType	CombiNo;
        ///双边报价编号
        BilateralID: "",///TViOrderInnerIDType	BilateralID;
        ///客户ID
        ClientID: "",///TViPartyIDType	ClientID;
        ///报价类型
        QuoteType: "",///TViQuoteTypeType	QuoteType;
        _id: 0
    }
};

///债券报价基本信息
var CViQuoteBaseInfoField = function () {
    return {
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///买入卖出
        Direction: "",///TViDirectionType	Direction;
        ///债券价格
        Price: "",///TViPriceType	Price;
        ///到期收益率
        YTM: "",///TViRatioType	YTM;
        ///最后修改时间
        UpdateTime: "",///TViTimeType	UpdateTime;
        ///最后修改毫秒
        UpdateMillisec: "",///TViMillisecType	UpdateMillisec;
        ///报价档位
        PriceLevel: "",///TViLevelType	PriceLevel;
        ///隐含回购利率
        IRR: "",///TViRatioType	IRR;
        ///剩余期限
        RemainMaturity: "",///TViRatioType	RemainMaturity;
        ///前一日中债估值
        PreCBEstiValue: "",///TViRatioType	PreCBEstiValue;
        _id: 0
    }
};

///债券报价来源数量
var CViQuoteVolumeBaseField = function () {
    return {
        ///债券市场名称
        MarketName: "",///TViMarketNameType	MarketName;
        ///债券对手方
        Trader: "",///TViTradeIDType	Trader;
        ///报价数量
        Volume: "",///TViVolumeType	Volume;
        _id: 0
    }
};

///债券期货和可交割券关系表查询条件
var CViQryBondFutureDeliverableField = function () {
    return {
        ///期货代码
        FutureID: "",///TViInstrumentIDType	FutureID;
        _id: 0
    }
};

///债券期货和可交割券关系表
var CViBondFutureDeliverableField = function () {
    return {
        ///期货代码
        FutureID: "",///TViInstrumentIDType	FutureID;
        ///期货资产类型
        FutureAssetType: "",///TViEnumValueTypeType	FutureAssetType;
        ///期货市场类型
        FutureMarketType: "",///TViEnumValueTypeType	FutureMarketType;
        ///可交割券代码
        DeliverableID: "",///TViInstrumentIDType	DeliverableID;
        ///可交割券上市交易日
        ListDate: "",///TViLongDateType	ListDate;
        ///可交割券上市标志
        IsListed: "",///TViBoolType	IsListed;
        ///可交割券票面利率(%)
        Coupon: "",///TViRatioType	Coupon;
        ///债券资产类型
        BondAssetType: "",///TViEnumValueTypeType	BondAssetType;
        ///债券市场类型
        BondMarketType: "",///TViEnumValueTypeType	BondMarketType;
        ///转换因子
        ctd_cf: "",///TViCouponType	ctd_cf;
        _id: 0
    }
};

///请求/退订行情
var CViSubMarketDataField = function () {
    return {
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        _id: 0
    }
};

///请求/退订行情BAR
var CViSubMarketDataBarField = function () {
    return {
        ///策略ID号
        RuleID: "",///TViRuleIDType	RuleID;
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///按秒记的时间周期
        BarPeriod: "",///TViBarPeriodType	BarPeriod;
        _id: 0
    }
};

///债券查询条件
var CViQryBondField = function () {
    return {
        ///债券代码
        BondID: "",///TViInstrumentIDType	BondID;
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        _id: 0
    }
};

///债券
var CViBondField = function () {
    return {
        ///债券代码
        BondID: "",///TViInstrumentIDType	BondID;
        ///债券名称
        BondName: "",///TViInstrumentNameType	BondName;
        ///深交所债券代码
        SZ_CODE: "",///TViInstrumentIDType	SZ_CODE;
        ///上交所债券代码
        SH_CODE: "",///TViInstrumentIDType	SH_CODE;
        ///资产类型
        AssetType: "",///TViAssetTypeType	AssetType;
        ///市场类型代码
        MarketType: "",///TViMarketTypeType	MarketType;
        ///发行日
        IssueDate: "",///TViLongDateType	IssueDate;
        ///上市交易日
        ListDate: "",///TViLongDateType	ListDate;
        ///上市标志
        IsListed: "",///TViBoolType	IsListed;
        ///起息日
        StartDate: "",///TViLongDateType	StartDate;
        ///到期兑付日
        MTRDate: "",///TViLongDateType	MTRDate;
        ///计息基准
        DayCount: "",///TViDayCountType	DayCount;
        ///票面利率
        Coupon: "",///TViCouponType	Coupon;
        ///剩余期限
        RemainMaturity: "",///TViRatioType	RemainMaturity;
        ///付息频率
        PaymentFreq: "",///TViPaymentFreqType	PaymentFreq;
        ///前一日中债估值
        PreCBEstiValue: "",///TViRatioType	PreCBEstiValue;
        ///上市前交易表示
        PreMarketBondIndicator: "",///TViBoolType	PreMarketBondIndicator;
        ///债券类型名称
        SecurityDesc: "",///TViSecurityDescType	SecurityDesc;
        ///待偿期
        TermToMaturityString: "",///TViTermToMaturityStringType	TermToMaturityString;
        ///发行人机构6位代码
        IssuerShortPartyID: "",///TViIssuerShortPartyIDType	IssuerShortPartyID;
        ///债券类型ID
        SecurityTypeID: "",///TViSecurityTypeIDType	SecurityTypeID;
        _id: 0
    }
};

///Api通道登录信息
var CViChannelInfoField = function () {
    return {
        ///通道代码
        ChannelID: "",///TViChannelIDType	ChannelID;
        ///接口类型
        ApiType: "",///TViApiTypeType	ApiType;
        ///用途类型
        TerminalType: "",///TViTerminalTypeType	TerminalType;
        _id: 0
    }
};

///债券成交信息查询条件
var CViQryBondExecReportField = function () {
    return {
        ///交易品种代码
        BondID: "",///TViInstrumentIDType	BondID;
        ///起始日期
        StartDate: "",///TViDateType	StartDate;
        ///终止日期
        EndDate: "",///TViDateType	EndDate;
        _id: 0
    }
};

///债券成交信息表
var CViBondExecReportField = function () {
    return {
        ///成交编号
        ExecID: "",///TViExecIDType	ExecID;
        ///交易品种代码
        BondID: "",///TViInstrumentIDType	BondID;
        ///交易方
        Trader: "",///TViTraderIDType	Trader;
        ///买入卖出
        Direction: "",///TViDirectionType	Direction;
        ///到期收益率
        YTM: "",///TViRatioType	YTM;
        ///成交面额
        Amount: "",///TViMoneyType	Amount;
        ///成交价格
        Price: "",///TViPriceType	Price;
        ///成交状态
        ExecType: "",///TViExecTypeType	ExecType;
        ///成交市场
        MarketIndicator: "",///TViMarketIndicatorType	MarketIndicator;
        ///成交日期
        TradeDate: "",///TViDateType	TradeDate;
        ///成交时间
        TradeTime: "",///TViTimeType	TradeTime;
        ///成交时间毫秒
        TradeMillisec: "",///TViMillisecType	TradeMillisec;
        _id: 0
    }
};

///供客户端显示的消息
var CViMessageField = function () {
    return {
        ///时间戳
        TimeStamp: "",///TViDateTimeType	TimeStamp;
        ///策略ID号
        RuleID: "",///TViRuleIDType	RuleID;
        ///消息级别
        MessageLevel: "",///TViMessageLevelType	MessageLevel;
        ///消息
        Message: "",///TViErrorMsgType	Message;
        _id: 0
    }
};

///规则指标
var CViRuleIndicatorField = function () {
    return {
        ///策略代码
        RuleID: "",///TViRuleIDType	RuleID;
        ///策略指标键
        IndicatorKey: "",///TViIndicatorKeyType	IndicatorKey;
        ///策略指标值
        IndicatorValue: "",///TViIndicatorValueType	IndicatorValue;
        ///指标值计算时间
        CalcTime: "",///TViDateTimeType	CalcTime;
        ///描述
        Description: "",///TViDescriptionType	Description;
        _id: 0
    }
};

///通道账号标识
var CViAccountIDRefField = function () {
    return {
        ///分账号代码
        AccountID: "",///TViAccountIDType	AccountID;
        _id: 0
    }
};

///通道
var CViChannelField = function () {
    return {
        ///通道代码
        ChannelID: "",///TViChannelIDType	ChannelID;
        ///接口类型
        ApiType: "",///TViApiTypeType	ApiType;
        ///用途类型
        TerminalType: "",///TViTerminalTypeType	TerminalType;
        ///用户代码
        UserID: "",///TViUserIDType	UserID;
        ///登录密码
        Password: "",///TViPasswordType	Password;
        ///地址列表
        AddressList: "",///TViIPAddrListType	AddressList;
        ///收盘时间
        CloseTimePoint: "",///TViTimeType	CloseTimePoint;
        ///日志级别
        LogLevel: "",///TViLogLevelType	LogLevel;
        ///扩展配置
        ExtendInfo: "",///TViExtendInfoType	ExtendInfo;
        ///是否启用
        IsActive: "",///TViBoolType	IsActive;
        _id: 0
    }
};

///HFT分账户信息
var CViCustomerAccountField = function () {
    return {
        ///用户代码
        CustomerID: "",///TViCustomerIDType	CustomerID;
        ///交易通道
        TDChannelID: "",///TViChannelIDType	TDChannelID;
        ///行情通道
        MDChannelID: "",///TViChannelIDType	MDChannelID;
        ///分账号代码
        AccountID: "",///TViAccountIDType	AccountID;
        ///交易接口类型
        TDApiType: "",///TViApiTypeType	TDApiType;
        ///资金账号
        AssetNo: "",///TViAssetNoType	AssetNo;
        ///持仓帐号
        CombiNo: "",///TViCombiNoType	CombiNo;
        ///API账户ID
        APIAccountID: "",///TViAccountIDType	APIAccountID;
        ///投资者ID
        APIInvestorID: "",///TViInvestorIDType	APIInvestorID;
        _id: 0
    }
};

///合约做市状态
var CViMakeMarketStatusField = function () {
    return {
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///是否正在做市
        status: "",///TViBoolType	status;
        ///买单状态
        BuyStatus: "",///TViOrderStatusType	BuyStatus;
        ///卖单状态
        SellStatus: "",///TViOrderStatusType	SellStatus;
        ///上次有效时间点
        LastRecTime: "",///TViMMPeriodType	LastRecTime;
        ///当天有效做市时间
        MarketTimeDay: "",///TViMMPeriodType	MarketTimeDay;
        ///当月有效做市时间
        MarketTimeMonth: "",///TViMMPeriodType	MarketTimeMonth;
        ///当日做市交易量
        TradeVolumeDay: "",///TViVolumeType	TradeVolumeDay;
        ///当月做市交易量
        TradeVolumeMonth: "",///TViVolumeType	TradeVolumeMonth;
        ///上次更新日期
        LastUpdDate: "",///TViDateTimeType	LastUpdDate;
        ///分账号代码
        AccountID: "",///TViAccountIDType	AccountID;
        ///持仓帐号
        CombiNo: "",///TViCombiNoType	CombiNo;
        _id: 0
    }
};

///合约做市参数
var CViMakeMarketParaField = function () {
    return {
        ///合约代码
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        ///是否参与做市
        IsInvolved: "",///TViBoolType	IsInvolved;
        ///买价上浮价差
        BuyPriceSpread: "",///TViPriceTickType	BuyPriceSpread;
        ///卖价下沉价差
        SellPriceSpread: "",///TViPriceTickType	SellPriceSpread;
        ///买数量
        BuyVolume: "",///TViVolumeType	BuyVolume;
        ///卖数量
        SellVolume: "",///TViVolumeType	SellVolume;
        ///最低买数量
        MinBuyVolume: "",///TViVolumeType	MinBuyVolume;
        ///最低卖数量
        MinSellVolume: "",///TViVolumeType	MinSellVolume;
        ///最大买卖价差
        MaxSpread: "",///TViPriceType	MaxSpread;
        ///分账号代码
        AccountID: "",///TViAccountIDType	AccountID;
        ///持仓帐号
        CombiNo: "",///TViCombiNoType	CombiNo;
        _id: 0
    }
};

///策略限仓
var CViPositionLimitField = function () {
    return {
        ///策略ID号
        RuleID: "",///TViRuleIDType	RuleID;
        ///买入卖出
        Direction: "",///TViDirectionType	Direction;
        ///限制额度
        VolumeLimit: "",///TViVolumeType	VolumeLimit;
        _id: 0
    }
};

///合约价差
var CViPriceSpreadField = function () {
    return {
        ///合约1代码
        MinuendInstrument: "",///TViInstrumentIDType	MinuendInstrument;
        ///合约2代码
        SubtrahendInstrument: "",///TViInstrumentIDType	SubtrahendInstrument;
        ///合约1最新价
        MinuendPrice: "",///TViPriceType	MinuendPrice;
        ///合约2最新价
        SubtrahendPrice: "",///TViPriceType	SubtrahendPrice;
        ///价差
        DeltaPrice: "",///TViPriceType	DeltaPrice;
        ///计算时间
        UpdateTime: "",///TViTimeType	UpdateTime;
        _id: 0
    }
};

///双合约价差订阅
var CViSubPriceSpreadInsField = function () {
    return {
        ///合约1代码
        MinuendInstrument: "",///TViInstrumentIDType	MinuendInstrument;
        ///合约2代码
        SubtrahendInstrument: "",///TViInstrumentIDType	SubtrahendInstrument;
        _id: 0
    }
};

///订阅新本币平台行情
var CViSubCFETSMarketDataField = function () {
    return {
        ///债券代码
        BondID: "",///TViInstrumentIDType	BondID;
        ///行情类型
        MDBookType: "",///TViMDBookTypeType	MDBookType;
        ///清算速度
        LegSettlType: "",///TViLegSettlTypeType	LegSettlType;
        ///行情分类
        MDSubBookType: "",///TViMDSubBookTypeType	MDSubBookType;
        ///债券类型
        SecurityType: "",///TViSecurityTypeType	SecurityType;
        ///实时承接标识
        RealTimeUndertakeFlag: "",///TViRealTimeUndertakeFlagType	RealTimeUndertakeFlag;
        ///市场类型
        MarketIndicator: "",///TViMarketIndicatorType	MarketIndicator;
        ///本方主体类型
        SubjectPartyType: "",///TViSubjectPartyTypeType	SubjectPartyType;
        _id: 0
    }
};

///推送新本币平台市场行情
var CViCFETSDepthMarketDataField = function () {
    return {
        ///交易日
        TradingDay: "",///TViDateType	TradingDay;
        ///债券代码
        BondID: "",///TViInstrumentIDType	BondID;
        ///债券名称
        BondName: "",///TViInstrumentNameType	BondName;
        ///行情类型
        MDBookType: "",///TViMDBookTypeType	MDBookType;
        ///行情分类
        MDSubBookType: "",///TViMDSubBookTypeType	MDSubBookType;
        ///开盘价
        OpenPrice: "",///TViPriceType	OpenPrice;
        ///最新成交价
        LastPrice: "",///TViPriceType	LastPrice;
        ///可成交总量,单位万元
        Volume: "",///TViVolumeType	Volume;
        ///清算速度
        LegSettlType: "",///TViLegSettlTypeType	LegSettlType;
        ///申买价1
        BidPrice1: "",///TViPriceType	BidPrice1;
        ///申买到期收益率1
        BidYTM1: "",///TViRatioType	BidYTM1;
        ///申买量1,单位万元
        BidVolume1: "",///TViVolumeType	BidVolume1;
        ///买1行情发生时间
        BidMDTime1: "",///TViFullDateTimeType	BidMDTime1;
        ///申买价1报价编号
        BidQuoteID1: "",///TViInstrumentIDType	BidQuoteID1;
        ///申买价1结算方式
        BidDeliveryType1: "",///TViDeliveryTypeType	BidDeliveryType1;
        ///订单总量,申买量1,单位万元
        BidTradeVolume1: "",///TViVolumeType	BidTradeVolume1;
        ///申卖价1
        AskPrice1: "",///TViPriceType	AskPrice1;
        ///申卖到期收益1
        AskYTM1: "",///TViRatioType	AskYTM1;
        ///申卖量1,单位万元
        AskVolume1: "",///TViVolumeType	AskVolume1;
        ///卖1行情发生时间
        AskMDTime1: "",///TViFullDateTimeType	AskMDTime1;
        ///申卖价1报价编号
        AskQuoteID1: "",///TViInstrumentIDType	AskQuoteID1;
        ///申卖价1结算方式
        AskDeliveryType1: "",///TViDeliveryTypeType	AskDeliveryType1;
        ///订单总量,申卖量1,单位万元
        AskTradeVolume1: "",///TViVolumeType	AskTradeVolume1;
        ///申买价2
        BidPrice2: "",///TViPriceType	BidPrice2;
        ///申买到期收益率2
        BidYTM2: "",///TViRatioType	BidYTM2;
        ///申买量2,单位万元
        BidVolume2: "",///TViVolumeType	BidVolume2;
        ///买2行情发生时间
        BidMDTime2: "",///TViFullDateTimeType	BidMDTime2;
        ///申买价2报价编号
        BidQuoteID2: "",///TViInstrumentIDType	BidQuoteID2;
        ///申买价2结算方式
        BidDeliveryType2: "",///TViDeliveryTypeType	BidDeliveryType2;
        ///订单总量,申买量2,单位万元
        BidTradeVolume2: "",///TViVolumeType	BidTradeVolume2;
        ///申买价3
        BidPrice3: "",///TViPriceType	BidPrice3;
        ///申买到期收益率3
        BidYTM3: "",///TViRatioType	BidYTM3;
        ///申买量3,单位万元
        BidVolume3: "",///TViVolumeType	BidVolume3;
        ///买3行情发生时间
        BidMDTime3: "",///TViFullDateTimeType	BidMDTime3;
        ///申买价3报价编号
        BidQuoteID3: "",///TViInstrumentIDType	BidQuoteID3;
        ///申买价3结算方式
        BidDeliveryType3: "",///TViDeliveryTypeType	BidDeliveryType3;
        ///订单总量,申买量3,单位万元
        BidTradeVolume3: "",///TViVolumeType	BidTradeVolume3;
        ///申买价4
        BidPrice4: "",///TViPriceType	BidPrice4;
        ///申买到期收益率4
        BidYTM4: "",///TViRatioType	BidYTM4;
        ///申买量4,单位万元
        BidVolume4: "",///TViVolumeType	BidVolume4;
        ///买4行情发生时间
        BidMDTime4: "",///TViFullDateTimeType	BidMDTime4;
        ///申买价4报价编号
        BidQuoteID4: "",///TViInstrumentIDType	BidQuoteID4;
        ///申买价4结算方式
        BidDeliveryType4: "",///TViDeliveryTypeType	BidDeliveryType4;
        ///订单总量,申买量4,单位万元
        BidTradeVolume4: "",///TViVolumeType	BidTradeVolume4;
        ///申买价5
        BidPrice5: "",///TViPriceType	BidPrice5;
        ///申买到期收益率5
        BidYTM5: "",///TViRatioType	BidYTM5;
        ///申买量5,单位万元
        BidVolume5: "",///TViVolumeType	BidVolume5;
        ///买5行情发生时间
        BidMDTime5: "",///TViFullDateTimeType	BidMDTime5;
        ///申买价5报价编号
        BidQuoteID5: "",///TViInstrumentIDType	BidQuoteID5;
        ///申买价5结算方式
        BidDeliveryType5: "",///TViDeliveryTypeType	BidDeliveryType5;
        ///订单总量,申买量5,单位万元
        BidTradeVolume5: "",///TViVolumeType	BidTradeVolume5;
        ///申卖价2
        AskPrice2: "",///TViPriceType	AskPrice2;
        ///申卖到期收益率2
        AskYTM2: "",///TViRatioType	AskYTM2;
        ///申卖量2,单位万元
        AskVolume2: "",///TViVolumeType	AskVolume2;
        ///卖2行情发生时间
        AskMDTime2: "",///TViFullDateTimeType	AskMDTime2;
        ///申卖价2报价编号
        AskQuoteID2: "",///TViInstrumentIDType	AskQuoteID2;
        ///申卖价2结算方式
        AskDeliveryType2: "",///TViDeliveryTypeType	AskDeliveryType2;
        ///订单总量,申卖量2,单位万元
        AskTradeVolume2: "",///TViVolumeType	AskTradeVolume2;
        ///申卖价3
        AskPrice3: "",///TViPriceType	AskPrice3;
        ///申卖到期收益率3
        AskYTM3: "",///TViRatioType	AskYTM3;
        ///申卖量3,单位万元
        AskVolume3: "",///TViVolumeType	AskVolume3;
        ///卖3行情发生时间
        AskMDTime3: "",///TViFullDateTimeType	AskMDTime3;
        ///申卖价3报价编号
        AskQuoteID3: "",///TViInstrumentIDType	AskQuoteID3;
        ///申卖价3结算方式
        AskDeliveryType3: "",///TViDeliveryTypeType	AskDeliveryType3;
        ///订单总量,申卖量3,单位万元
        AskTradeVolume3: "",///TViVolumeType	AskTradeVolume3;
        ///申卖价4
        AskPrice4: "",///TViPriceType	AskPrice4;
        ///申卖到期收益率4
        AskYTM4: "",///TViRatioType	AskYTM4;
        ///申卖量4,单位万元
        AskVolume4: "",///TViVolumeType	AskVolume4;
        ///卖4行情发生时间
        AskMDTime4: "",///TViFullDateTimeType	AskMDTime4;
        ///申卖价4报价编号
        AskQuoteID4: "",///TViInstrumentIDType	AskQuoteID4;
        ///申卖价4结算方式
        AskDeliveryType4: "",///TViDeliveryTypeType	AskDeliveryType4;
        ///订单总量,申卖量4,单位万元
        AskTradeVolume4: "",///TViVolumeType	AskTradeVolume4;
        ///申卖价5
        AskPrice5: "",///TViPriceType	AskPrice5;
        ///申卖到期收益率5
        AskYTM5: "",///TViRatioType	AskYTM5;
        ///申卖量5,单位万元
        AskVolume5: "",///TViVolumeType	AskVolume5;
        ///卖5行情发生时间
        AskMDTime5: "",///TViFullDateTimeType	AskMDTime5;
        ///申卖价5报价编号
        AskQuoteID5: "",///TViInstrumentIDType	AskQuoteID5;
        ///申卖价5结算方式
        AskDeliveryType5: "",///TViDeliveryTypeType	AskDeliveryType5;
        ///订单总量,申卖量5,单位万元
        AskTradeVolume5: "",///TViVolumeType	AskTradeVolume5;
        ///申买价6
        BidPrice6: "",///TViPriceType	BidPrice6;
        ///申买到期收益率6
        BidYTM6: "",///TViRatioType	BidYTM6;
        ///申买量6,单位万元
        BidVolume6: "",///TViVolumeType	BidVolume6;
        ///买6行情发生时间
        BidMDTime6: "",///TViFullDateTimeType	BidMDTime6;
        ///申买价6报价编号
        BidQuoteID6: "",///TViInstrumentIDType	BidQuoteID6;
        ///申买价6结算方式
        BidDeliveryType6: "",///TViDeliveryTypeType	BidDeliveryType6;
        ///订单总量,申买量6,单位万元
        BidTradeVolume6: "",///TViVolumeType	BidTradeVolume6;
        ///申买价7
        BidPrice7: "",///TViPriceType	BidPrice7;
        ///申买到期收益率7
        BidYTM7: "",///TViRatioType	BidYTM7;
        ///申买量7,单位万元
        BidVolume7: "",///TViVolumeType	BidVolume7;
        ///买7行情发生时间
        BidMDTime7: "",///TViFullDateTimeType	BidMDTime7;
        ///申买价7报价编号
        BidQuoteID7: "",///TViInstrumentIDType	BidQuoteID7;
        ///申买价7结算方式
        BidDeliveryType7: "",///TViDeliveryTypeType	BidDeliveryType7;
        ///订单总量,申买量7,单位万元
        BidTradeVolume7: "",///TViVolumeType	BidTradeVolume7;
        ///申买价8
        BidPrice8: "",///TViPriceType	BidPrice8;
        ///申买到期收益率8
        BidYTM8: "",///TViRatioType	BidYTM8;
        ///申买量8,单位万元
        BidVolume8: "",///TViVolumeType	BidVolume8;
        ///买8行情发生时间
        BidMDTime8: "",///TViFullDateTimeType	BidMDTime8;
        ///申买价8报价编号
        BidQuoteID8: "",///TViInstrumentIDType	BidQuoteID8;
        ///申买价8结算方式
        BidDeliveryType8: "",///TViDeliveryTypeType	BidDeliveryType8;
        ///订单总量,申买量8,单位万元
        BidTradeVolume8: "",///TViVolumeType	BidTradeVolume8;
        ///申买价9
        BidPrice9: "",///TViPriceType	BidPrice9;
        ///申买到期收益率9
        BidYTM9: "",///TViRatioType	BidYTM9;
        ///申买量9,单位万元
        BidVolume9: "",///TViVolumeType	BidVolume9;
        ///买9行情发生时间
        BidMDTime9: "",///TViFullDateTimeType	BidMDTime9;
        ///申买价9报价编号
        BidQuoteID9: "",///TViInstrumentIDType	BidQuoteID9;
        ///申买价9结算方式
        BidDeliveryType9: "",///TViDeliveryTypeType	BidDeliveryType9;
        ///订单总量,申买量9,单位万元
        BidTradeVolume9: "",///TViVolumeType	BidTradeVolume9;
        ///申买价10
        BidPrice10: "",///TViPriceType	BidPrice10;
        ///申买到期收益率10
        BidYTM10: "",///TViRatioType	BidYTM10;
        ///申买量10,单位万元
        BidVolume10: "",///TViVolumeType	BidVolume10;
        ///买10行情发生时间
        BidMDTime10: "",///TViFullDateTimeType	BidMDTime10;
        ///申买价10报价编号
        BidQuoteID10: "",///TViInstrumentIDType	BidQuoteID10;
        ///申买价10结算方式
        BidDeliveryType10: "",///TViDeliveryTypeType	BidDeliveryType10;
        ///订单总量,申买量10,单位万元
        BidTradeVolume10: "",///TViVolumeType	BidTradeVolume10;
        ///申卖价6
        AskPrice6: "",///TViPriceType	AskPrice6;
        ///申卖到期收益6
        AskYTM6: "",///TViRatioType	AskYTM6;
        ///申卖量6,单位万元
        AskVolume6: "",///TViVolumeType	AskVolume6;
        ///卖6行情发生时间
        AskMDTime6: "",///TViFullDateTimeType	AskMDTime6;
        ///申卖价6报价编号
        AskQuoteID6: "",///TViInstrumentIDType	AskQuoteID6;
        ///申卖价6结算方式
        AskDeliveryType6: "",///TViDeliveryTypeType	AskDeliveryType6;
        ///订单总量,申卖量6,单位万元
        AskTradeVolume6: "",///TViVolumeType	AskTradeVolume6;
        ///申卖价7
        AskPrice7: "",///TViPriceType	AskPrice7;
        ///申卖到期收益率7
        AskYTM7: "",///TViRatioType	AskYTM7;
        ///申卖量7,单位万元
        AskVolume7: "",///TViVolumeType	AskVolume7;
        ///卖7行情发生时间
        AskMDTime7: "",///TViFullDateTimeType	AskMDTime7;
        ///申卖价7报价编号
        AskQuoteID7: "",///TViInstrumentIDType	AskQuoteID7;
        ///申卖价7结算方式
        AskDeliveryType7: "",///TViDeliveryTypeType	AskDeliveryType7;
        ///订单总量,申卖量7,单位万元
        AskTradeVolume7: "",///TViVolumeType	AskTradeVolume7;
        ///申卖价8
        AskPrice8: "",///TViPriceType	AskPrice8;
        ///申卖到期收益率8
        AskYTM8: "",///TViRatioType	AskYTM8;
        ///申卖量8,单位万元
        AskVolume8: "",///TViVolumeType	AskVolume8;
        ///卖8行情发生时间
        AskMDTime8: "",///TViFullDateTimeType	AskMDTime8;
        ///申卖价8报价编号
        AskQuoteID8: "",///TViInstrumentIDType	AskQuoteID8;
        ///申卖价8结算方式
        AskDeliveryType8: "",///TViDeliveryTypeType	AskDeliveryType8;
        ///订单总量,申卖量8,单位万元
        AskTradeVolume8: "",///TViVolumeType	AskTradeVolume8;
        ///申卖价9
        AskPrice9: "",///TViPriceType	AskPrice9;
        ///申卖到期收益率9
        AskYTM9: "",///TViRatioType	AskYTM9;
        ///申卖量9,单位万元
        AskVolume9: "",///TViVolumeType	AskVolume9;
        ///卖9行情发生时间
        AskMDTime9: "",///TViFullDateTimeType	AskMDTime9;
        ///申卖价9报价编号
        AskQuoteID9: "",///TViInstrumentIDType	AskQuoteID9;
        ///申卖价9结算方式
        AskDeliveryType9: "",///TViDeliveryTypeType	AskDeliveryType9;
        ///订单总量,申卖量9,单位万元
        AskTradeVolume9: "",///TViVolumeType	AskTradeVolume9;
        ///申卖价10
        AskPrice10: "",///TViPriceType	AskPrice10;
        ///申卖到期收益率10
        AskYTM10: "",///TViRatioType	AskYTM10;
        ///申卖量10,单位万元
        AskVolume10: "",///TViVolumeType	AskVolume10;
        ///卖10行情发生时间
        AskMDTime10: "",///TViFullDateTimeType	AskMDTime10;
        ///申卖价10报价编号
        AskQuoteID10: "",///TViInstrumentIDType	AskQuoteID10;
        ///申卖价10结算方式
        AskDeliveryType10: "",///TViDeliveryTypeType	AskDeliveryType10;
        ///订单总量,申卖量10,单位万元
        AskTradeVolume10: "",///TViVolumeType	AskTradeVolume10;
        ///行情生成时间
        TransactTime: "",///TViTimeWithMSCType	TransactTime;
        ///市场
        MarketIndicator: "",///TViMarketIndicatorType	MarketIndicator;
        ///实时承接标识
        RealTimeUndertakeFlag: "",///TViRealTimeUndertakeFlagType	RealTimeUndertakeFlag;
        ///本方主体类型
        SubjectPartyType: "",///TViSubjectPartyTypeType	SubjectPartyType;
        _id: 0
    }
};

///接收到的请求报价
var CViCfetsRFQReceiveField = function () {
    return {
        ///报价编号
        QuoteID: "",///TViOrderSysIDType	QuoteID;
        ///业务发生时间
        TransactTime: "",///TViFullDateTimeType	TransactTime;
        ///报单状态
        OrderStatus: "",///TViOrderStatusType	OrderStatus;
        ///报价类型
        QuoteType: "",///TViQuoteTypeType	QuoteType;
        ///报价有效时间
        ValidUntilTime: "",///TViFullDateTimeType	ValidUntilTime;
        ///债券代码
        BondID: "",///TViInstrumentIDType	BondID;
        ///债券名称
        BondName: "",///TViInstrumentNameType	BondName;
        ///买入卖出
        Direction: "",///TViDirectionType	Direction;
        ///报价数量
        Volume: "",///TViVolumeType	Volume;
        ///结算日期
        SettlDate: "",///TViDateType	SettlDate;
        ///结算方式
        DeliveryType: "",///TViDeliveryTypeType	DeliveryType;
        ///清算类型
        ClearingMethod: "",///TViClearingMethodType	ClearingMethod;
        ///清算速度
        SettlType: "",///TViLegSettlTypeType	SettlType;
        ///21位机构码
        PartyID: "",///TViPartyIDType	PartyID;
        ///交易员代码
        UserID: "",///TViUserIDType	UserID;
        ///报单交易中心状态
        origCfetsStatus: "",///TViOrderStatusType	origCfetsStatus;
        ///应计利息
        accruedInterestAmt: "",///TViAccruedInterestAmtType	accruedInterestAmt;
        ///应计利息总额
        accruedInterestTotalAmt: "",///TViAccruedInterestTotalAmtType	accruedInterestTotalAmt;
        _id: 0
    }
};

///接收到的请求报价
var CViCfetsTradeMemberField = function () {
    return {
        ///交易成员ID
        MemberID: "",///TViIssuerShortPartyIDType	MemberID;
        ///机构代码
        OrgCode: "",///TViPartyIDType	OrgCode;
        ///中文全称
        CHName: "",///TViInstrumentNameType	CHName;
        ///中文简称
        CHShortName: "",///TViInstrumentNameType	CHShortName;
        ///英文全称
        ENName: "",///TViInstrumentNameType	ENName;
        ///英文简称
        ENShortName: "",///TViInstrumentNameType	ENShortName;
        ///更新日期
        UpdateTime: "",///TViDateTimeType	UpdateTime;
        _id: 0
    }
};

///CME/CBOT深度行情
var CViCMEDepthMarketDataField = function () {
    return {
        ///合约
        InstrumentID: "",///TViInstrumentIDType	InstrumentID;
        ///交易所代码
        ExchangeID: "",///TViExchangeIDType	ExchangeID;
        ///商品
        CommodityID: "",///TViCommodityIDType	CommodityID;
        ///商品类型
        CommodityType: "",///TViCommodityTypeType	CommodityType;
        ///商品使用币种
        CurrencyID: "",///TViCurrencyIDType	CurrencyID;
        ///交易状态
        TradingState: "",///TViInstrumentStatusType	TradingState;
        ///最后修改时间
        TimeStamp: "",///TViDateTimeType	TimeStamp;
        ///交易日
        TradingDay: "",///TViDateType	TradingDay;
        ///昨结算
        PreSettlementPrice: "",///TViPriceType	PreSettlementPrice;
        ///昨收盘
        PreClosePrice: "",///TViPriceType	PreClosePrice;
        ///昨持仓量
        PreOpenInterest: "",///TViLargeVolumeType	PreOpenInterest;
        ///昨虚实度
        PreDelta: "",///TViRatioType	PreDelta;
        ///合约最高
        HistoryHigh: "",///TViPriceType	HistoryHigh;
        ///合约最低
        HistoryLow: "",///TViPriceType	HistoryLow;
        ///今开盘
        OpenPrice: "",///TViPriceType	OpenPrice;
        ///最高价
        HighestPrice: "",///TViPriceType	HighestPrice;
        ///最低价
        LowestPrice: "",///TViPriceType	LowestPrice;
        ///今收盘
        ClosePrice: "",///TViPriceType	ClosePrice;
        ///涨停板价
        UpperLimitPrice: "",///TViPriceType	UpperLimitPrice;
        ///跌停板价
        LowerLimitPrice: "",///TViPriceType	LowerLimitPrice;
        ///本次结算价
        ClearPrice: "",///TViPriceType	ClearPrice;
        ///今虚实度
        CurrDelta: "",///TViRatioType	CurrDelta;
        ///最新价
        LastPrice: "",///TViPriceType	LastPrice;
        ///数量
        Volume: "",///TViVolumeType	Volume;
        ///成交金额
        Turnover: "",///TViMoneyType	Turnover;
        ///持仓量
        OpenInterest: "",///TViLargeVolumeType	OpenInterest;
        ///涨跌
        NetChg: "",///TViPriceType	NetChg;
        ///涨跌幅
        Markup: "",///TViPriceType	Markup;
        ///振幅
        Swing: "",///TViRatioType	Swing;
        ///平均价
        AvgPrice: "",///TViPriceType	AvgPrice;
        ///隐含买价
        ImpliedBidPrice: "",///TViPriceType	ImpliedBidPrice;
        ///隐含买量
        ImpliedBidQty: "",///TViVolumeType	ImpliedBidQty;
        ///隐含卖价
        ImpliedAskPrice: "",///TViPriceType	ImpliedAskPrice;
        ///隐含卖量
        ImpliedAskQty: "",///TViVolumeType	ImpliedAskQty;
        ///内盘量
        InsideQty: "",///TViVolumeType	InsideQty;
        ///外盘量
        OutsideQty: "",///TViVolumeType	OutsideQty;
        ///换手率
        TurnoverRate: "",///TViRatioType	TurnoverRate;
        ///五日均量
        Q5DAvgQty: "",///TViVolumeType	Q5DAvgQty;
        ///市盈率
        PERatio: "",///TViRatioType	PERatio;
        ///总市值
        TotalValue: "",///TViMoneyType	TotalValue;
        ///流通市值
        NegotiableValue: "",///TViMoneyType	NegotiableValue;
        ///持仓走势
        PositionTrend: "",///TViVolumeType	PositionTrend;
        ///涨速
        ChangeSpeed: "",///TViRatioType	ChangeSpeed;
        ///委买总量
        TotalBidQty: "",///TViVolumeType	TotalBidQty;
        ///委卖总量
        TotalAskQty: "",///TViVolumeType	TotalAskQty;
        ///当日总成交量
        TotalQty: "",///TViVolumeType	TotalQty;
        ///当日成交金额
        TotalTurnover: "",///TViMoneyType	TotalTurnover;
        ///申买价一
        BidPrice1: "",///TViPriceType	BidPrice1;
        ///申买量一
        BidVolume1: "",///TViVolumeType	BidVolume1;
        ///申卖价一
        AskPrice1: "",///TViPriceType	AskPrice1;
        ///申卖量一
        AskVolume1: "",///TViVolumeType	AskVolume1;
        ///申买价二
        BidPrice2: "",///TViPriceType	BidPrice2;
        ///申买量二
        BidVolume2: "",///TViVolumeType	BidVolume2;
        ///申买价三
        BidPrice3: "",///TViPriceType	BidPrice3;
        ///申买量三
        BidVolume3: "",///TViVolumeType	BidVolume3;
        ///申卖价二
        AskPrice2: "",///TViPriceType	AskPrice2;
        ///申卖量二
        AskVolume2: "",///TViVolumeType	AskVolume2;
        ///申卖价三
        AskPrice3: "",///TViPriceType	AskPrice3;
        ///申卖量三
        AskVolume3: "",///TViVolumeType	AskVolume3;
        ///申买价四
        BidPrice4: "",///TViPriceType	BidPrice4;
        ///申买量四
        BidVolume4: "",///TViVolumeType	BidVolume4;
        ///申买价五
        BidPrice5: "",///TViPriceType	BidPrice5;
        ///申买量五
        BidVolume5: "",///TViVolumeType	BidVolume5;
        ///申卖价四
        AskPrice4: "",///TViPriceType	AskPrice4;
        ///申卖量四
        AskVolume4: "",///TViVolumeType	AskVolume4;
        ///申卖价五
        AskPrice5: "",///TViPriceType	AskPrice5;
        ///申卖量五
        AskVolume5: "",///TViVolumeType	AskVolume5;
        ///申买价六
        BidPrice6: "",///TViPriceType	BidPrice6;
        ///申买量六
        BidVolume6: "",///TViVolumeType	BidVolume6;
        ///申买价七
        BidPrice7: "",///TViPriceType	BidPrice7;
        ///申买量七
        BidVolume7: "",///TViVolumeType	BidVolume7;
        ///申买价八
        BidPrice8: "",///TViPriceType	BidPrice8;
        ///申买量八
        BidVolume8: "",///TViVolumeType	BidVolume8;
        ///申买价九
        BidPrice9: "",///TViPriceType	BidPrice9;
        ///申买量九
        BidVolume9: "",///TViVolumeType	BidVolume9;
        ///申买价十
        BidPrice10: "",///TViPriceType	BidPrice10;
        ///申买量十
        BidVolume10: "",///TViVolumeType	BidVolume10;
        ///申卖价六
        AskPrice6: "",///TViPriceType	AskPrice6;
        ///申卖量六
        AskVolume6: "",///TViVolumeType	AskVolume6;
        ///申卖价七
        AskPrice7: "",///TViPriceType	AskPrice7;
        ///申卖量七
        AskVolume7: "",///TViVolumeType	AskVolume7;
        ///申卖价八
        AskPrice8: "",///TViPriceType	AskPrice8;
        ///申卖量八
        AskVolume8: "",///TViVolumeType	AskVolume8;
        ///申卖价九
        AskPrice9: "",///TViPriceType	AskPrice9;
        ///申卖量九
        AskVolume9: "",///TViVolumeType	AskVolume9;
        ///申卖价十
        AskPrice10: "",///TViPriceType	AskPrice10;
        ///申卖量十
        AskVolume10: "",///TViVolumeType	AskVolume10;
        ///申买价十一
        BidPrice11: "",///TViPriceType	BidPrice11;
        ///申买量十一
        BidVolume11: "",///TViVolumeType	BidVolume11;
        ///申买价十二
        BidPrice12: "",///TViPriceType	BidPrice12;
        ///申买量十二
        BidVolume12: "",///TViVolumeType	BidVolume12;
        ///申买价十三
        BidPrice13: "",///TViPriceType	BidPrice13;
        ///申买量十三
        BidVolume13: "",///TViVolumeType	BidVolume13;
        ///申买价十四
        BidPrice14: "",///TViPriceType	BidPrice14;
        ///申买量十四
        BidVolume14: "",///TViVolumeType	BidVolume14;
        ///申买价十五
        BidPrice15: "",///TViPriceType	BidPrice15;
        ///申买量十五
        BidVolume15: "",///TViVolumeType	BidVolume15;
        ///申买价十六
        BidPrice16: "",///TViPriceType	BidPrice16;
        ///申买量十六
        BidVolume16: "",///TViVolumeType	BidVolume16;
        ///申买价十七
        BidPrice17: "",///TViPriceType	BidPrice17;
        ///申买量十七
        BidVolume17: "",///TViVolumeType	BidVolume17;
        ///申买价十八
        BidPrice18: "",///TViPriceType	BidPrice18;
        ///申买量十八
        BidVolume18: "",///TViVolumeType	BidVolume18;
        ///申买价十九
        BidPrice19: "",///TViPriceType	BidPrice19;
        ///申买量十九
        BidVolume19: "",///TViVolumeType	BidVolume19;
        ///申买价二十
        BidPrice20: "",///TViPriceType	BidPrice20;
        ///申买量二十
        BidVolume20: "",///TViVolumeType	BidVolume20;
        ///申卖价十一
        AskPrice11: "",///TViPriceType	AskPrice11;
        ///申卖量十一
        AskVolume11: "",///TViVolumeType	AskVolume11;
        ///申卖价十二
        AskPrice12: "",///TViPriceType	AskPrice12;
        ///申卖量十二
        AskVolume12: "",///TViVolumeType	AskVolume12;
        ///申卖价十三
        AskPrice13: "",///TViPriceType	AskPrice13;
        ///申卖量十三
        AskVolume13: "",///TViVolumeType	AskVolume13;
        ///申卖价十四
        AskPrice14: "",///TViPriceType	AskPrice14;
        ///申卖量十四
        AskVolume14: "",///TViVolumeType	AskVolume14;
        ///申卖价十五
        AskPrice15: "",///TViPriceType	AskPrice15;
        ///申卖量十五
        AskVolume15: "",///TViVolumeType	AskVolume15;
        ///申卖价十六
        AskPrice16: "",///TViPriceType	AskPrice16;
        ///申卖量十六
        AskVolume16: "",///TViVolumeType	AskVolume16;
        ///申卖价十七
        AskPrice17: "",///TViPriceType	AskPrice17;
        ///申卖量十七
        AskVolume17: "",///TViVolumeType	AskVolume17;
        ///申卖价十八
        AskPrice18: "",///TViPriceType	AskPrice18;
        ///申卖量十八
        AskVolume18: "",///TViVolumeType	AskVolume18;
        ///申卖价十九
        AskPrice19: "",///TViPriceType	AskPrice19;
        ///申卖量十九
        AskVolume19: "",///TViVolumeType	AskVolume19;
        ///申卖价二十
        AskPrice20: "",///TViPriceType	AskPrice20;
        ///申卖量二十
        AskVolume20: "",///TViVolumeType	AskVolume20;
        _id: 0
    }
};

///rule订阅rfq by Clientid
var CViSubRFQByClientIDField = function () {
    return {
        ///策略代码
        RuleID: "",///TViRuleIDType	RuleID;
        ///客户ID
        ClientID: "",///TViPartyIDType	ClientID;
        _id: 0
    }
};


